#ifndef _ONCRPC_WRAPPER_H
#define _ONCRPC_WRAPPER_H

#include <rpc/rpc.h>
#include <rpc/pmap_pro.h>

SVCXPRT *wnfs_svcudp_create(int sock);
SVCXPRT *wnfs_svctcp_create(int sock, u_int sendsize, u_int recvsize);
bool_t wnfs_svc_register(SVCXPRT *xprt, u_long prog, u_long vers, void (*dispatch)(struct svc_req *, SVCXPRT *), int protocol);
bool_t wnfs_svc_sendreply(SVCXPRT *xprt, ... /*xdrproc_t xdr_results, caddr_t xdr_location*/);
bool_t wnfs_xdr_u_long(XDR *xdrs, u_long *ulp);
bool_t wnfs_svc_getargs(SVCXPRT *xprt, ... /*bool_t	(*getargs)(XDR *xdrs, void *cap), void *cap*/);
bool_t wnfs_xdr_opaque(XDR *xdrs, caddr_t cp, u_int cnt);
bool_t wnfs_xdr_bytes(XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize);
bool_t wnfs_xdr_u_char(XDR *xdrs, char *cp);
bool_t wnfs_xdr_int(XDR *xdrs, int *ip);
bool_t wnfs_xdr_bool(XDR *xdrs, bool_t *bp);

#endif //_ONCRPC_WRAPPER_H
